package com.fit.dao.language;

import java.util.List;

import org.apache.tapestry5.hibernate.annotations.CommitAfter;

import com.fit.entities.language.Language;
import com.fit.entities.user.User;

public interface LanguageDAO {

	@CommitAfter
	public boolean save(Language newLanguage);

	@CommitAfter
	public boolean delete(Language language);

	@CommitAfter
	public boolean update(Language language);

	public List<Language> findAll();

	public Language  findByIdLanguageAndName(int languageId, String name);

	public Language findByID(Long id);

	@CommitAfter
	public boolean deleteByID(Long id);
}
